require('module-alias/register')
const koa = require("koa");
const InitManage = require('./core/init.js');
const catchError = require ('./middlewares/exceptions')
const config = require('./config/config')
const parser = require('koa-bodyparser');


global.environment = config.environment

// require("./models/user")

const app = new koa();
app.use(catchError)
app.use(parser())

InitManage.InitCore(app)



app.listen(3000);
 